<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AvansRS.Domain.EventDate>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>EventDateEdit</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="ID">ID:</label>
                <%= Html.TextBox("ID", Model.ID) %>
                <%= Html.ValidationMessage("ID", "*") %>
            </p>
            <p>
                <label for="ForStudents">ForStudents:</label>
                <%= Html.TextBox("ForStudents", Model.ForStudents) %>
                <%= Html.ValidationMessage("ForStudents", "*") %>
            </p>
            <p>
                <label for="AllowChanges">AllowChanges:</label>
                <%= Html.TextBox("AllowChanges", Model.AllowChanges) %>
                <%= Html.ValidationMessage("AllowChanges", "*") %>
            </p>
            <p>
                <label for="Date">Date:</label>
                <%= Html.TextBox("Date", String.Format("{0:g}", Model.Date)) %>
                <%= Html.ValidationMessage("Date", "*") %>
            </p>
            <p>
                <label for="Rooster">Rooster</label>                                
                <%= Html.DropDownList("roosterID",(IEnumerable<SelectListItem>) ViewData["roosterList"])%>
            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

